package com.studychen.appfxcp.commom.task;

import de.saxsys.mvvmfx.MvvmFX;

/**
 * @author :chenping
 * @date :Created in 2023/6/27 16:16
 */
public class AppTask implements Runnable{
    @Override
    public void run() {
        try {
            System.out.println("开始运行线程");
            Thread.sleep(3000);
            MvvmFX.getNotificationCenter().publish("message", "is ok");
            System.out.println("时间到了");
            MvvmFX.getNotificationCenter().publish("message2", "is fail");
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
}
